/*
 * Copyright (c) 2024. hallele, Inc All rights reserved.
 */

package cn.hallele.ms.starter.web.framework.event;

import cn.hallele.infrastructure.data.util.CastUtil;
import cn.hallele.ms.starter.web.framework.context.ActionContext;
import org.springframework.context.ApplicationEvent;

/**
 * 补全请求事件
 *
 * @author anle5
 * @since 2024/12/23 23:25
 */
public class ActionRequestFilledEvent extends ApplicationEvent {
    /**
     * 上下文
     *
     * @param context 上下文
     */
    public ActionRequestFilledEvent(ActionContext context) {
        super(context);
    }

    /**
     * The object on which the Event initially occurred.
     *
     * @return the object on which the Event initially occurred
     */
    @Override
    public ActionContext getSource() {
        return CastUtil.cast(super.getSource());
    }
}
